<script setup>
import { ref } from 'vue'
const num = ref(0)
const fn = () => {
  console.log('fn')
}
defineExpose({
  num,
  fn
})
</script>

<template>
  <div class="ref-page">
    <h3>ref组件--{{ num }}</h3>
  </div>
</template>

<style scoped></style>
